The phrase "the wrong thing" means doing something that is not correct, appropriate or in accordance with what is expected. It can refer to actions or decisions that lead to negative consequences or outcomes and are regretted afterwards. The expression can also imply a mistake, an error in judgment or an unwise choice made by someone despite knowing better. In essence, the phrase conveys the idea of doing something that is not right or going against what is considered proper behavior.